package com.chuangshi.core.vote.member.controller.mobile.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 会员移动端V1手机号码登录的接收参数
 *
 * @author marcus
 * 2018/11/20
 */
@ApiModel(description = "会员移动端V1手机号码登录的接收参数")
public class MemberMobileV1MobileLoginRequest extends Request {

	@ApiModelProperty(value = "手机号码", required = true, position = 3)
	@NotNull(message = "手机号码不能为空")
	@Length(max = 11, message = "手机号码长度超出限制")
	private String memberMobile;

	@ApiModelProperty(value = "短信验证码", required = true, position = 4)
	@NotNull(message = "短信验证码不能为空")
	@Length(max = 6, message = "短信验证码长度超出限制")
	private String smsCaptchaCode;

	@ApiModelProperty(value = "用户微信开放编号", position = 20)
	private String openId;

	@ApiModelProperty(value = "用户微信联合编号", position = 30)
	private String unionId;

	@ApiModelProperty(value = "用户昵称", position = 40)
	private String nickName;

	@ApiModelProperty(value = "用户性别", position = 50)
	private Integer gender;

	@ApiModelProperty(value = "用户头像路径", position = 70)
	private String avatarPath;

	@ApiModelProperty(value = "省", position = 80)
	private String province;

	@ApiModelProperty(value = "城市", position = 90)
	private String city;

	public String getMemberMobile() {
		return memberMobile;
	}

	public void setMemberMobile(String memberMobile) {
		this.memberMobile = memberMobile;
	}

	public String getSmsCaptchaCode() {
		return smsCaptchaCode;
	}

	public void setSmsCaptchaCode(String smsCaptchaCode) {
		this.smsCaptchaCode = smsCaptchaCode;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getAvatarPath() {
		return avatarPath;
	}

	public void setAvatarPath(String avatarPath) {
		this.avatarPath = avatarPath;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
}
